package com.youlian.cloud.core.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 公共返回实体
 * @author liuhx
 * @create 2019/07/29 15:31
 * @email liuhx@elab-plus.com
 **/
@ApiModel("公共返回实体")
public class ResponseCommonModel {
    @ApiModelProperty(
            name = "success",
            value = "是否调用成功",
            dataType = "boolean",
            allowableValues = "true,false"
    )
    private Boolean success = true;
    @ApiModelProperty(
            name = "errorCode",
            value = "错误码"
    )
    private String errorCode;
    @ApiModelProperty(
            name = "message",
            value = "返回消息内容"
    )
    private String message;
    @ApiModelProperty(
            name = "id",
            value = "返回编号"
    )
    private String id;
    @ApiModelProperty(
            name = "resultId",
            value = "日志编号"
    )
    private String logId;

    public ResponseCommonModel() {
    }

    public Boolean getSuccess() {
        return this.success;
    }

    public String getLogId() {
        return this.logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
